dic = {
    "aaa": ["123456", 10000],
    "bbb": ["888888", 5000],
    "ccc": ["333333", 3000]
}

account = input("")

if account not in dic.keys():
    print("Wrong User")
else:
    count = 0
    for i in range(3):
        password = input("")
        if password == dic.get(account)[0]:
            print("Success")
            break
        else:
            count += 1
            if count < 3:
                print(f"Fail,{3-count} Times Left")
            elif count == 3:
                print("Login Denied")
